
#include <ProbabilityLib.h>

ProbabilityLib::ProbabilityLib(const float probabilityA, const float probabilityB):
	m_probabilityEventA(probabilityA),m_probabilityEventB(probabilityB)
{
}
float ProbabilityLib::getProbabilityEventAandEventB() const
{ 
	return m_probabilityEventA*m_probabilityEventB;
}
float ProbabilityLib::getProbabilityEventAorEventB() const
{ 
	return m_probabilityEventA+m_probabilityEventB-getProbabilityEventAandEventB();
}
float ProbabilityLib::getProbabilityNoEventA() const
{
        return 1-m_probabilityEventA;
}

